from django.urls import path,re_path,include
from zhuce import views


urlpatterns = [
    path('captcha/',include('captcha.urls')),
    path('',views.Regist.as_view(),name='regist'),
    path('login/',views.Login.as_view(),name='login'),
    path('shouye/',views.Index.as_view(),name='index'),
    path('exit/',views.exit,name = 'exit'),
    re_path('user/active/(?P<token>.*)/',views.Activate.as_view(),name='activate'),
    path('get_code/',views.send_post,name='get_code'),
    path('check_code/',views.sms_check,name='check_code'),
    path('img_check/',views.img_check,name='img_check'),
    path('img_refresh/',views.img_refresh,name='img_refresh'),
    # path('get_img/',views.get_varify,name='get_img'),
    # path('check_img/',views.check_img,name='check_img'),
    path('cart/',views.cart,name='cart')
]

#全局404页面配置
# handler404 = views.page_not_found
# handler500 = views.page_error
